package com.lcredu.web.interceptor;

import com.lcredu.bean.User;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;

/**
 * @author 黎长容
 * @date 2025-07-25 11:18
 */
@Controller
public class InterceptorHandler {
    
    @RequestMapping("/hi")
    public String hi(){
        System.out.println("InterceptorHandler---hi");
        return "success";
    }

    @RequestMapping("/hello")
    public String hello(){
        System.out.println("InterceptorHandler---hello");
        return "success";
    }

    @RequestMapping("/ok")
    public String ok(User user){
        System.out.println("InterceptorHandler---ok");
        return "success";
    }
}
